SYNC RATE
This command is used to change the default refresh rate SYNC ON uses to control the speed of the SYNC update speed.
SYNC RATE Rate
Rate
Integer
This value is an integer number such as 1.
This command does not return a value.
The default rate sustains the "Frames Per Second" at no more than 40fps. You can specify an integer value from 1 to 1000 to set a new maximum rate. A rate of zero will allow the program to refresh as fast as the system will allow. A forced sync rate cannot produce an accurate rating as in order to keep the refresh smooth, the code can only work with milliseconds which is not an accurate method of timing. The system is designed to treat smoothness more important than frame rating accuracy.
SYNC ON
SYNC RATE 30
DO
PRINT "keep to approximately 30 frames per second"
SYNC
LOOP
CORE Commands Menu
Index